import React, { Component } from 'react'

import NavBar from './component/NavBar'
export default class App extends Component {
    render() {
        const obj={
            title:'sadasd',
            leftshow:true
        }
        return (
            <div>
                <div>
                    <h2>首页</h2>
                    <NavBar title="12" leftshow={false}/>
                </div>

                <div>
                    <h2>列表</h2>
                    <NavBar title="12" />
                </div>

                <div>
                    <h2>购物车</h2>
                    <NavBar title="12" />
                </div>

                <NavBar title="12" title={obj.title} leftshow={obj.leftshow}/>

                <NavBar title="12" {...obj}/>
            </div>
        )
    }
}
